package com.block.datapush.enums;

import lombok.Getter;

@Getter
public enum PushStatusEnum {


    INIT("INIT", "初始化")
    ,MATCH_FAILED("MATCH_FAILED", "撞库失败")
    ,WAIT_PUSH("WAIT_PUSH", "等待推送")

    ,GET_APPROVE_FAILED("GET_APPROVE_FAILED", "获取授权信息失败")

    ,WAIT_APPROVE("WAIT_APPROVE", "等待授权")

    ,WAIT_QUERY("WAIT_QUERY", "待查询")// 需要主动查询授权结果
    ,WAIT_NOTICE("WAIT_NOTICE", "待通知")// 需要等待机构通知授权结果

    ,SUCCESS("SUCCESS", "推送成功")
    ,FAILED("FAILED", "推送失败")
    ,CALLBACK_FAILED("CALLBACK_FAILED", "回调失败")
    ,TIMEOUT("TIMEOUT", "查询超时")
    ;

    private String value;
    private String name;

    PushStatusEnum(String value, String name){
        this.value = value;
        this.name = name;
    }

}
